<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
date:日期
getSeconds:获取秒数
getHours:获取小时数
-->
<script>
  var date = new Date(); //日起对象
  console.log(date.getSeconds());
  console.log(date.getHours());

  var your_girl = {
      //属性
      name: "陈蠢蠢",
      age: 24,
      sex: "女",
      // JS对象方法
      show_girl: function () {
          console.log("你的女朋友叫" + this.name, "年龄" + this.age, "性别" + this.sex)
      }
  }
  console.log(your_girl.name)  //对象名.属性名
  your_girl.show_girl()
</script>
</body>
</html>